<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>展示吧</title>
</head>
<body>
    <form method="get">
    <h2>欢迎{{ username }},登录</h2>
    {% if data_list %}
        <table border="2" cellspacing="0">
            {% for data in data_list %}
                <tr>
                    <td>{{ data.author }}</td>
                    <td>{{ data.title }}</td>
                    <td><input type="button" value="传送到作者主页" onclick="javascript:window.location.href='{{ data.author_url }}'"></td>
                    <td>{{ user.adress }}</td>
                </tr>
            {% endfor %}
        </table>
    {% endif %}
</form>
</body>
</html>